# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=qextserialport
pkgver=1.2_rc1
_pkgver=1.2rc
pkgrel=2
pkgdesc="Interface to serial ports for Qt application"
options="!check" # Has no testsuite
url="https://github.com/qextserialport/qextserialport"
arch="all"
license="MIT"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/qextserialport/qextserialport-$_pkgver.zip"
builddir="$srcdir"/qextserialport-$_pkgver

prepare() {
	default_prepare
	echo "QEXTSERIALPORT_LIBRARY=yes" > config.pri
}

build() {
	qmake-qt5
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="64835dc89abfa7c17b6470317ff9e48f9136388806d52597b836dcb57b6f2f04dd46ffc217cb62d564863f1cb32c4a4f2c6930838b903ca0b9ef7556a5410b4b  qextserialport-1.2rc.zip"
